package com.xiangxiao.rpan.storage.constant;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/6/30 15:52
 */
public class ResponseCode {
  private ResponseCode() {
  }
  /**
   * 请求成功
   */
  public static final int OK = 10000000;

  /**
   * 未获取到当前登录的用户信息
   * */
  public static final int NOT_FIND_LOGGED_USERINO = 40000001;
  /**
   * 请求失败
   */
  public static final int FAIL = 15000001;

  public static final int BIG_FILE_UPLOAD_FAIL = 15010012;

  public static final int COMPRESSED_FILE_UPLOAD_FAIL = 15010013;

  public static final int PARAMETER_ERROR = 15010018;

  /**
   * 文件已存在，请勿重复上传
   */
  public static final int FILE_EXIST = 15010022;

  /**
   * 文件不存在，无法下载
   */
  public static final int FILE_NOT_EXIST = 15010023;
  /**
   * 大文件上传失败
   */
  public static final int BIGFILE_UP_FAIL = 15010007;
  /**
   * 文件续传片不正确
   */
  public static final int FILE_UPLOAD_CHUNK_ERROR = 15010017;

  /**
   * 获取文件锁失败，文件或正在上传中
   */
  public static final int GET_FILE_LOCK_FAIL = 15010010;

  public static final Byte FILE_UPLOAD_FINISH = new Byte("1");
  public static final Byte FILE_UPLOAD_UNFINISHED = new Byte("0");
  public static final Byte FILE_UPLOAD_FAIL = new Byte("2");

  public static final int STORAGE_SOURCE_NOT_FOUND = 15040102;
  public static final int STORAGE_SOURCE_INIT_FAIL = 15050100;
  public static final int STORAGE_SOURCE_INIT_STORAGE_PARAM_FIELD_FAIL = 15050102;

  public static final int QUERY_STORAGE_SOURCE_CONFIG_FAILED = 15050103;

  public static final int INSPECT_STORAGE_KEY_REPEAT_FAILED = 15050104;

  public static final int QUERY_DEFINED_STORAGE_CONFIG_FAILED = 15050105;

  public static final int SAVE_STORAGE_CONFIG_FAILED = 15050106;

  public static final int QUERY_STORAGE_CONFIG_FAILED = 15050107;

  public static final int DISABLED_STORAGE_CONFIG_FAILED = 15050108;

  public static final int QUERY_STORAGE_README_LIST_FAILED = 15050109;

  public static final int QUERY_STORAGE_FILTRER_LIST_FAILED = 15050110;

  public static final int SAVE_STORAGE_README_LIST_FAILED = 15050111;

  public static final int MODIFY_README_COMPATIBLE_FAILED = 15050112;

  public static final int QUERY_PASSWORD_CONFIG_FAILED = 15050113;

  public static final int SAVE_PASSWORD_FLODER_FAILED = 15050114;

  public static final int SAVE_FILTRER_RULES__FAILED = 15050115;

  public static final int DOWNLOAD_FILE_FAILED = 15050116;

  public static final int STORAGE_SOURCE_FILE_FORBIDDEN = 15050117;

  public static final int REQUIRED_PASSWORD = 15050118;

  public static final int INVALID_PASSWORD = 15050119;

  public static final int QUERY_FILE_LIST_FAILED = 15050120;

  public static final int DELETE_README_COMPATIBLE_FAILED = 15050121;

  public static final int QUERY_DOMAIN_FAILED = 15050123;

  public static final int BATCH_DELETE_FILE_FAILED = 15050124;

  public static final int NOT_SUPPORT_FASTDFS_DELETE_FLODER = 15050125;

  public static final int NOT_SUPPORT_FASTDFS_RENAME_FLODER = 15050126;

  public static final int NOT_SUPPORT_FASTDFS_RENAME_FILE = 15050127;

  public static final int RENAME_FAILED = 15050127;

}
